package com.jinlia.show.modules.base.model.vo;

import com.jinlia.show.modules.base.wxapp.entity.PayOrder;
import com.jinlia.show.modules.base.model.po.PayOrderPO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;

@Data
public class PayOrderVO extends PayOrderPO {

    private BigDecimal arrearsAmount;
    public static PayOrderVO fromEntity(PayOrder entity) {
        PayOrderVO vo = new PayOrderVO();
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
}
